import request from '@/utils/request'

//查询用户消息
export function listMsgByUser(query) {
  return request({
    url: '/admin/msg/user/list',
    method: 'get',
    params: query
  })
}

//标记用户消息为已读
export function editMsgHaveRead(msgId) {
  return request({
    url: '/admin/msg/have_read/' + msgId,
    method: 'put'
  })
}
